<template>
  <el-tour v-model="isOpenTour">
    <el-tour-step placement="bottom" target="#fileName0" description="双击进入下一级目录">
    </el-tour-step>
    <el-tour-step
        target="#fileType0"
        description="双击可以预览下载文件"
    />
  </el-tour>
</template>
<script setup>
import {onMounted, ref} from "vue";

const isOpenTour = ref(false);
const FILE_OPERATION_TOUR = "file_operation_tour";

onMounted(() => {
  let result = localStorage.getItem(FILE_OPERATION_TOUR)
  if (!result) {
    setTimeout(() => {
      isOpenTour.value = true;
    }, 1000)
    localStorage.setItem(FILE_OPERATION_TOUR, "ok")
  }

})
</script>


<style scoped>

</style>